package cn.usian.threadlocal;

import cn.usian.pojo.User;

public class AuthThreadLocal {
    private static ThreadLocal<User> userThreadLocal=new ThreadLocal<>();

    static public void set(User user){
        userThreadLocal.set(user);
    }

    static public User get(){
        return userThreadLocal.get();
    }

    static public void remove(){
        userThreadLocal.remove();
    }
}
